import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import warnings
warnings.filterwarnings("ignore")
if __name__ == '__main__':
    train_data_path = 'data/zhengqi_train.txt'
    train_data = pd.read_csv(train_data_path,sep='\t',encoding='utf-8')

    test_data_path = 'data/zhengqi_test.txt'
    test_data = pd.read_csv(test_data_path,sep='\t',encoding='utf-8')

    train_data.info()
    print(train_data.describe())
    test_data.info()

    # print('绘制箱型图：')
    # fig = plt.figure(figsize=(4,6))
    # # orient放置方向V垂直
    # sns.boxplot(train_data['V0'],orient='h',width=0.5)
    # plt.show()

    column = train_data.columns.tolist()[:39]
    print(column)
    fig = plt.figure(figsize=(80,60),dpi=75)
    for i in range(38):
        plt.subplot(7,8,i+1)
        sns.boxplot(train_data[column[i]],orient='v',width=0.5)
        plt.ylabel(column[i],fontsize=36)
    plt.savefig('箱型图')
    plt.show()




